package vip.meeet.jdk.extend;

import com.alibaba.fastjson.JSON;

public class Son extends Base {

    private String position;

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public void print(){
        System.out.println(this.position + " " + this.getId());
    }

    public static void main(String[] args) {
        Son son = new Son();
        son.setPosition("position");
        son.setId(1);
        son.setName("son");
        System.out.println(JSON.toJSONString(son));
    }
}
